typedef void (*ff_read) (void);
typedef void (*ff_write) (void);
-typedef void (*waypt_cb) (waypoint *);
+typedef void (*waypt_cb) (const waypoint *);
void waypt_add (waypoint *);
void route_add (waypoint *);
void waypt_disp_all(waypt_cb);
void waypt_init(void);
void route_init(void);
-void waypt_disp(waypoint *);
+void waypt_disp(const waypoint *);
void fatal(const char *, ...);
ff_vecs_t *find_vec(char *);
void disp_vecs(void);
-void printposn(coord *c, int is_lat);
+void printposn(const coord *c, int is_lat);
void *xcalloc(size_t nmemb, size_t size);
void *xmalloc(size_t size);
}
static void
-geo_waypt_pr(waypoint *waypointp)
+geo_waypt_pr(const waypoint *waypointp)
{
fprintf(ofd, "<waypoint>\n");
fprintf(ofd, "<name id=\"%s\">", waypointp->shortname);
}
static void
-gpsman_disp(waypoint *waypointp)
+gpsman_disp(const waypoint *waypointp)
{
fprintf(out_file, "%-8.8s\t%s\t",
waypointp->shortname, waypointp->description);
}
static void
-gpsutil_disp(waypoint *wpt)
+gpsutil_disp(const waypoint *wpt)
{
double lon,lat;
const char *icon_token;
}
static void
-gpx_waypt_pr(waypoint *waypointp)
+gpx_waypt_pr(const waypoint *waypointp)
{
fprintf(ofd, "<wpt lat=\"%lf\" lon=\"%lf\">\n",
-static void gpsutil_disp(waypoint *wpt)
+static void holux_disp(const waypoint *wpt)
{
double lon,lat;
struct tm *tm;
((RTEHDR *)&HxWFile[ROUTESTART])->used[sCount] = 0;
- waypt_disp_all(gpsutil_disp);
+ waypt_disp_all(holux_disp);
file_out = fopen(fOutname, "wb");
static
void
-mag_waypt_pr(waypoint *waypointp)
+mag_waypt_pr(const waypoint *waypointp)
{
double lon, lat;
double ilon, ilat;
}
static void
-mapsend_waypt_pr(waypoint *waypointp)
+mapsend_waypt_pr(const waypoint *waypointp)
{
int n;
unsigned char c;
}
static void
-mapsource_waypt_pr(waypoint *waypointp)
+mapsource_waypt_pr(const waypoint *waypointp)
{
char tbuf[1024];
char *tp = tbuf;
}
static void
-gpsutil_disp(waypoint *wpt)
+gpsutil_disp(const waypoint *wpt)
{
double lon,lat;
signed int ilon, ilat;
}
static void
-gpsutil_disp(waypoint *wpt)
+gpsutil_disp(const waypoint *wpt)
{
fprintf(file_out, "%f,%f:redpin:%s\n",
wpt->position.longitude.degrees,
}
void
-printposn(coord *c, int is_lat)
+printposn(const coord *c, int is_lat)
{
char d;
if (is_lat) {
}
void
-waypt_disp(waypoint *wpt)
+waypt_disp(const waypoint *wpt)
{
if (wpt->creation_time) {
printf("%s ", ctime(&wpt->creation_time));